<template>
    <el-tooltip :content="'选中的值是: ' + form[field.name]" placement="top">
        <el-switch
            v-model="form[field.name]"
            active-color="#13ce66"
            active-text="是"
            inactive-color="#ff4949"
            inactive-text="否">
        </el-switch>
    </el-tooltip>
</template>

<script>
export default {
    props: ['field', 'form'],
}
</script>

<style></style>
